<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<table border="1">
		<tr >
			<td>id</td>
			<td>姓名</td>
			<td>邮箱</td>
			<td>手机</td>
			<td>操作</td>
		</tr>
		<?php foreach ($arr as $k => $v) { ?>
			<tr <?php if($k==1){echo 'bgcolor="red"';} ?>>
				<td ><?php echo $k ?></td>
				<td><?php echo $v['name']; ?></td>
				<td><?php echo $v['mail']; ?></td>
				<td><?php echo $v['phone']; ?></td>
				<td><a href="./detail.php?id=<?php echo $k ?>">详情</a></td>
			</tr>

		<?php } ?>
		

	</table>
	<p style="color:red">百度</p>
</body>
</html>